package com.multi.thread.chapter03.demo18;

public class Run {
	
	public static void main(String[] args) throws InterruptedException {
		ThreadA a = new ThreadA();
		ThreadB b = new ThreadB();
		a.start();
		b.start();
		
		for (int i = 0; i < 10; i++) {
			Tools.tl.set("main" + (i + 1));
			System.out.println("main get value = " + Tools.tl.get());
			Thread.sleep(200);
		}
	}

}
